package com.dflc.entity.req;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
public class LoginReq {

	/**
	 * 用户账号
	 */
	@NotEmpty(message = "个人用户账号不能为空")
	private String userName;
	/**
	 * 用户密码
	 */
	@NotEmpty(message = "密码必须填写")
	@Length(min = 6,max = 18,message = "密码必须是6—18位字符")
	private String password;

}
